<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>品牌大全</title>
  <script src="lib/flexible/flexible.js"></script>
  <link rel="icon" href="favicon.ico">
  <link rel="stylesheet" href="css/common.css">
  <link rel="stylesheet" href="css/brand.css">
</head>
<body>
  <div class="container">
    <!--头部-->
    <div class="header">
      <h1 class="logo fl">
        <a href="index.html" >
          <img src="images/header_logo.png" alt="">
        </a>
      </h1>
      <div class="download fr">
        <a href="#">
          <img src="images/header_app.png" alt="">
        </a>
      </div>
    </div>
    <!--主体-->
    <div class="main">
      <div class="search">
        <input type="text"placeholder="请输入你想比价的商品"><button>搜索</button>
      </div>
      <div class="brand">
        <h3><span class="title"></span>哪个牌子好</h3>
      </div>
      <!--品牌标题-->
      <div class="brandTitle">
        <ul>
        
        </ul>
      </div>
      <div class="brand">
        <h3><span class="title"></span>品牌销量排行</h3>
      </div>
      <div class="sales">
        <ul>
        
        </ul>
      </div>
      <div class="brand">
        <h3><span class="title"></span>最新评论</h3>
      </div>
      <div class="comments">
        <ul>
        
        </ul>
      </div>
    </div>
    <!--底部-->
    <div class="footer">
      <div class="footerNav clearfix">
        <a href="#">登录</a>
        <a href="#">注册</a>
        <a href="javascript:;" id="goTop"><img src="images/top.jpg" alt="">回到顶部</a>
        <!--javascript:toBack.goTop();-->
      </div>
      <div class="msg">
        <p>
          <a href="#" class="red">手机APP下载</a>
          <a href="#">慢慢买手机版</a>
          <a href="#">--掌上比价平台</a>
        </p>
        <p><a href="#">手机APP下载</a></p>
      </div>
    </div>
  </div>
  <!--渲染品牌名-->
  <script type="text/html" id="brandTitleTpl">
    {{ each result v i }}
    <li>
      <a href="productlist.html?categoryId=0">
        <span class="rank">{{ (v.brandId + 1) % 10 == 0 ? 10 : (v.brandId + 1) % 10 }}</span>
        <div class="info">
          <p>{{ v.brandName }}</p>
          <p class="num">{{ v.brandInfo }}</p>
        </div>
      </a>
    </li>
    {{ /each }}
  </script>
  <!--销量模板-->
  <script type="text/html" id="salesTpl">
    {{ each result v i }}
    <li data-id="{{ v.productId }}">
      <a href="product.html?productid={{ v.productId }}&categoryid={{ v.categoryId }}">
        {{@ v.productImg }}
        <div class="info">
          <p class="title">
            {{ v.productName }}
          </p>
          <p class="price">{{ v.productPrice }}</p>
          <p>
            <span>{{ v.productQuote }}</span>
            <span>{{ v.productCom }}</span>
          </p>
        </div>
      </a>
    </li>
    {{ /each }}
</script>
  <!--内容模板-->
  <script type="text/html" id="contentTpl">
    {{ each result v i }}
    <li>
      <div class="pro">
        <img src="images/productComment.png" alt="">
        <div class="info">
          <div class="title">
            乐视TV(Letv)S50 Air全配版2D 50英寸 全高清LED液晶电视
          </div>
        </div>
      </div>
      <div class="content">
        <div class="content-t clearfix">
          <span class="name fl">{{ v.comName }}</span>
          <span class="star fl"></span>
          <span class="time fr">{{ v.comTime }}</span>
        </div>
        <p class="content-b">
          {{ v.comContent }} &nbsp;&nbsp; {{ v.comFrom }}
        </p>
      </div>
    </li>
    {{ /each }}
  </script>
  <script src="lib/jquery/jquery-1.12.4.js"></script>
  <script src="lib/artTemplate/template-web.js"></script>
  <script src="js/common.js"></script>
  <script src="js/brand.js"></script>
</body>
</html>